package com.sangmo.fts.common;

import com.sangmo.boot.framework.common.utils.UuidUtils;

public class TransactionTrace {
    private static ThreadLocal<String> ID = new ThreadLocal();

    public static void start() {
        ID.set(UuidUtils.getUUID());
    }

    public static String getId() {
        return ID.get();
    }

    public static void clear() {
        ID.remove();
    }
}
